let t = parseInt(readline())
while (t--) {
  let [a, b] = readline().split(' ')
  print(parseInt(a) + parseInt(b))
}